package com.localjoycommunity.cpdj.project.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.localjoycommunity.cpdj.framework.aspectj.lang.annotation.Excel;
import com.localjoycommunity.cpdj.framework.web.domain.BaseEntity;
import com.localjoycommunity.cpdj.project.system.domain.vo.QuestionPaperVo;

import java.util.List;

/**
 * 试卷对象 sys_paper
 *
 * @author leepandar
 * @date 2020-11-01
 */
public class SysPaper extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long paperId;

    /**
     * 试卷名称
     */
    @Excel(name = "试卷名称")
    private String title;

    /**
     * 题目数量
     */
    @Excel(name = "题目数量")
    private Integer questionNum;

    /**
     * 答题人数
     */
    @Excel(name = "答题人数")
    private Integer answerNum;

    /**
     * 正确率
     */
    @Excel(name = "正确率")
    private String correctPercent;

    /**
     * 上架状态，0：未上架  1：已上架
     */
    @Excel(name = "上架状态，0：未上架  1：已上架")
    private String shelfStatus;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private Integer delFlag;

    /**
     * 试题试卷中间表
     */
    @TableField(exist = false)
    private List<SysPaperQuestion>  paperQuestions;

    @TableField(exist = false)
    private List<QuestionPaperVo>  paperQuestions2;

    @TableField(exist = false)
    private Integer isDone;

    public Integer getIsDone() {
        return isDone;
    }

    public void setIsDone(Integer isDone) {
        this.isDone = isDone;
    }

    public void setPaperId(Long paperId) {
        this.paperId = paperId;
    }

    public Long getPaperId() {
        return paperId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public Integer getQuestionNum() {
        return questionNum;
    }

    public void setQuestionNum(Integer questionNum) {
        this.questionNum = questionNum;
    }

    public Integer getAnswerNum() {
        return answerNum;
    }

    public void setAnswerNum(Integer answerNum) {
        this.answerNum = answerNum;
    }

    public void setCorrectPercent(String correctPercent) {
        this.correctPercent = correctPercent;
    }

    public String getCorrectPercent() {
        return correctPercent;
    }

    public String getShelfStatus() {
        return shelfStatus;
    }

    public void setShelfStatus(String shelfStatus) {
        this.shelfStatus = shelfStatus;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public List<SysPaperQuestion> getPaperQuestions() {
        return paperQuestions;
    }

    public void setPaperQuestions(List<SysPaperQuestion> paperQuestions) {
        this.paperQuestions = paperQuestions;
    }

    public List<QuestionPaperVo> getPaperQuestions2() {
        return paperQuestions2;
    }

    public void setPaperQuestions2(List<QuestionPaperVo> paperQuestions2) {
        this.paperQuestions2 = paperQuestions2;
    }
}
